// ..
import * as types from './types'
var api=require("../api/tool.js")
/*获取数据*/
export const getNavArrList = () =>{
    return {
        type: types.NAVARR_LIST,
        promise: api.getSourceData("api/getMenu/asc")
    }
}

export const  setNavIndex=(n)=>{
 //   console.log("action===>index==>n:"+n);
    return {
        type:types.NAVARR_INDEX_SUCCESS,
        index:n
    }
}

export  const getSearchKeywordList=(keyword)=>{
    return {
        type:types.GET_SEARCH_KEYWORD,//先自定义10个
        promise:api.getSourceData("api/searchKeyword/10/"+keyword)
    }
}

export  * from './home.js';
export  * from './article.js';
export * from './search.js';
export * from './list.js';